﻿
using Inovout.IdeaSoft.Model;
namespace Inovout.IdeaSoft
{
    public class ProjectInfoFactory
    {
        public static ProjectInfo Create(string path)
        {
            //可以根据xml或者参数传进来的关键字，来确定用哪个方法来生成蓝图
            string key = string.Empty;
            ProjectInfo projectInfo = null; ;
            if (key == string.Empty)
            {
                projectInfo = CreateByEA(path);
            }
            return projectInfo;
        }
        private static ProjectInfo CreateByEA(string path)
        {
            IParser eupl = new EAUmlParser(path);
            return eupl.Parse();
        }
    }
}
